﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}


<div id="equipmentChangeTable" class="main-content">
    <h3 class="page-title">设备转移管理Equipment transfer management</h3>

    <!-- TABLE  -->
    <div class="panel">
        <div class="panel-heading">
            <p class="panel-title">设备负责人列表List of equipment principals</p>
            <div class="right">
                <button type="button" class="btn-toggle-collapse"><i class="fa fa-angle-up"></i></button>
            </div>
        </div>
        <div class="panel-body">
            <table class="table table-striped" v-if="isNotEmptyObject(assignerList)">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>负责人person in charge</th>
                        <th>中文名Chinese name</th>
                        <th>邮箱mailbox</th>
                        <th>电话Telephone</th>
                        <th>负责设备数量Responsible for equipment quantity</th>
                        <th>操作operation</th>
                    </tr>
                </thead>
                <tbody v-for="(assigner, index) in assignerList">
                    <tr v-if="isNotEmptyObject(assigner.UserInfo)">
                        <td>{{assigner.UserInfo.ID}}</td>
                        <td>{{assigner.UserInfo.Name}}</td>
                        <td>{{assigner.UserInfo.NameChs}}</td>
                        <td>{{assigner.UserInfo.Email}}</td>
                        <td>{{assigner.UserInfo.Mobile}}</td>
                        <td>{{assigner.TotalEquipmentCount}}</td>
                        <td>
                            <button type="button" class="btn btn-info btn-xs" v-on:click="ChangeAssigner(assigner.UserInfo.ID)">
                                <i class="fa fa-refresh"></i> 转移设备Transfer equipment
                            </button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!-- END TABLE -->
    <!-- TABLE  -->
    <div class="panel">
        <div class="panel-heading">
            <p class="panel-title">设备管理人列表List of equipment managers</p>
            <div class="right">
                <button type="button" class="btn-toggle-collapse"><i class="fa fa-angle-up"></i></button>
            </div>
        </div>
        <div class="panel-body">
            <table class="table table-striped" v-if="isNotEmptyObject(managerList)">
                <thead>
                    <tr>
                        <th>ID</th>
                        <th>管理人administrator</th>
                        <th>中文名Chinese name</th>
                        <th>邮箱mailbox</th>
                        <th>电话Telephone</th>
                        <th>管理设备数量Number of management devices</th>
                        <th>操作operation</th>
                    </tr>
                </thead>
                <tbody v-for="(manager, index) in managerList">
                    <tr>
                        <td>{{manager.UserInfo.ID}}</td>
                        <td>{{manager.UserInfo.Name}}</td>
                        <td>{{manager.UserInfo.NameChs}}</td>
                        <td>{{manager.UserInfo.Email}}</td>
                        <td>{{manager.UserInfo.Mobile}}</td>
                        <td>{{manager.TotalEquipmentCount}}</td>
                        <td>
                            <button type="button" class="btn btn-info btn-xs" v-on:click="ChangeManager(manager.UserInfo.ID)">
                                <i class="fa fa-refresh"></i> 转移设备Transfer equipment
                            </button>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
    <!-- END TABLE -->

</div>


@section scripts{
    <script type="text/javascript" src="~/Scripts/pageJs/Equipment/Change.js?v=@DateTime.Now.ToFileTimeUtc()"></script>
}

